package com.boot.learning.mockito.mongo;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import lombok.Data;

/**
 * 用户详情实体
 * @version 1.0
 * @author fuhw
 */
@Data
@Document(collection="userdetails")//mongo数据集合
public class UserDetail {
	
	@Id
	private String username;
	
	private String password;
	
	private Long age;

	public UserDetail( String username, String password, Long age ) {
		super();
		this.username = username;
		this.password = password;
		this.age = age;
	}

	public UserDetail() {
		super();
	}
	
	
	
}
